@keyframes loading {
  0%, 100% {
    transform: scale(0.0);
  }

  50% {
    transform: scale(1.0);
  }
}

.loading2 {
  >div {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    width: 60px;
    height: 60px;
    opacity: 0.6;
    border-radius: 50%;
    background-color: green;
    animation: loading 1.4s infinite ease-in;
  }

  >div:nth-child(2) {
    animation-delay: -0.7s;
  }
}